<?php
namespace Admin\Model;
use Think\Model;

class FriendModel extends Model{
  protected $tableName = 'friendurl';
  protected $_auto = array(
    array('ctime','time',1,'function'),
    array('endtime','myfun',1,'callback'),
  	);
  protected $_validate = array(
    array('tiele','require','标题不能空！'),
    array('url','require','URL不能空！'),
    array('des','require','描述不能空！'),
    array('url','url','链接格式不正确！'),
  	);
  protected function myfun($time){
  	return strtotime($time);
  }


}


?>